package api

import request "gitee.com/changeden/volcengine-livesaas-request-go"

type UploadReplayRequest struct {
	ActivityId *int64 `json:"ActivityId"`
	Media      *Media `json:"Media"`
}
type Media struct {
	Name string `json:"Name"`
	Vid  string `json:"Vid"`
}

func (instance *Instance) UploadReplay(data *UploadReplayRequest) (*NoResultResponse, error) {
	d := request.Data{
		Action: "UploadReplayAPI",
	}
	bindBody(&d, *data)
	var res NoResultResponse
	err := instance.post(&d, &res)
	return &res, err
}
